<template>
  <div>
    <el-form size="mini" :model="chabuForm">
      
        <el-row>
          <el-col :span="7">
            <el-form-item label="生产部门" :label-width="formLabelWidth">
            <el-input v-model="chabuForm.name"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        
      
      <el-form-item>
        <el-button type="mini" @click="submitForm()">查询</el-button>
      </el-form-item>
    </el-form>
    <el-table :data="kehuData" border style="width: 100%">
      <el-table-column fixed prop="ms_meng" label="部门管理"></el-table-column>
      <el-table-column prop="ms_id" label="序号"></el-table-column>
      <el-table-column prop="ms_name" label="姓名"></el-table-column>
      <el-table-column prop="ms_ban" label="加班（小时）"></el-table-column>
      <el-table-column prop="ms_zhou" label="周加班（小时）"></el-table-column>
      <el-table-column prop="ms_tishi" label="提醒"></el-table-column>
    </el-table>

  </div>
</template>

<script>
export default {
  data() {
    return {
      kehuData: [],
      chabuForm: {
        name: ""
      },
      formLabelWidth: "120px",
      zhuanyeData:[],
    };
  },
  created() {
    //  this.loginUserName = this.$cookieTools.getLoginUser().user_name;
    this.shujuxian();
  },
  methods: {
    shujuxian() {
      this.$myaxios
        .get("Attendance/MonthSummaryPoIndex?name=" + this.chabuForm.name)
        .then(r => {
          this.kehuData = r.data;
          // this.totalCount=r.data.data.length;
        });
    },
    submitForm() {
      this.shujuxian();
    }
  }
};
</script>

<style>
</style>